package com.dly.hope.pageUtils;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class Page<T> {

    private Integer pageSize;

    private Integer pageNumber;

    private Integer count;

    private List<T> content;

    public Page (PageRo pageRo){
        this.pageNumber = pageRo.getPageNumber();
        this.pageSize = pageRo.getPageSize();
    }
}
